package com.dk.service.impl;

import com.dk.entity.TContent;
import com.dk.mapper.TContentMapper;
import com.dk.service.ITContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 广告图片表 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-11-01
 */
@Service
public class TContentServiceImpl extends ServiceImpl<TContentMapper, TContent> implements ITContentService {

    @Autowired
    private TContentMapper tContentMapper;

    @Override
    public Boolean insertContent(TContent tContent) {
        int i = tContentMapper.insert(tContent);
        if (i > 0){
            return true;
        }
        return false;
    }
}
